<?php
require 'db_config.php';
require 'open_db.php';
include 'includes/ingredients.inc';



include 'includes/header.php';
?>

    <body>
<?php 
$array_ing = get_ingredients();
print_r($array_ing);
echo "<br /><br />";

$exists = ingredient_exist("Giggles");
if($exists){
  echo "It exists.  The ingredient ID is ". $exists . "<br/ >\n";
} else {
  echo "It does not exist<br />\n";
}
$new_ing = "Green Beans";
$success = create_ingredient($new_ing);

echo $success . "<br/>";
if($success){
  echo "Inserted " . $new_ing . " successfully.";
} else {
  echo "There was an error inserting the ingredient";
}

echo "<p>";
print_r(print_ingredients(7));
?>
    </body>

</html>